package com.eascs.web.o2o.scheduler.quartz;

import javax.inject.Inject;

import org.springframework.stereotype.Component;

import com.eascs.app.log.Logger;
import com.eascs.app.log.LoggerFactory;
import com.eascs.web.o2o.quartz.util.BaseJobUtil;
import com.eascs.web.o2o.quartz.util.ExecutorService;
import com.eascs.web.o2o.scheduler.service.SendMessageService;

@Component("O2oh5SynchroQuartz")
public class O2oh5SynchroQuartz extends BaseJobUtil{
	protected final Logger logger = LoggerFactory.getLogger(getClass());
	
	@Inject
	SendMessageService sendMessageService;
	
	public void msgSend() {
		executor("O2oh5SynchroQuartz", "msgSend", "o2oh5短信定时任务", new ExecutorService() {
			@Override
			public void exe() {
				sendMessageService.sendMessage();
			}
		});
	}
	
	
	public void msgSend1() {
		executor("O2oh5SynchroQuartz", "msgSend1", "o2oh5短信定时任务", new ExecutorService() {
			@Override
			public void exe() {
				sendMessageService.sendMessage();
			}
		});
	}
	
	
	
}
